package cc.admin.modules.wea.entity;

import java.io.Serializable;
import java.util.Date;

import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import cc.admin.poi.excel.annotation.Excel;
import cc.admin.common.aspect.annotation.Dict;

/**
 * @Description: 预警历史表
 * @Author: cc-admin
 * @Date:   2024-08-30
 * @Version: V1.0.0
 */
@Data
@TableName("wea_warning_record")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wea_warning_record对象", description="预警历史表")
public class WeaWarningRecord {

	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
	private String id;
	/**平台id*/
	@Excel(name = "平台id", width = 15)
    @ApiModelProperty(value = "平台id")
	private String platformId;
	/**预警信息id*/
	@Excel(name = "预警信息id", width = 15)
    @ApiModelProperty(value = "预警信息id")
	private String warningDetailId;
	/***/
	@Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
	private Date createTime;
// 预警数据
	private String data;
// 预警类型
	private String warningType;
	/**公司id*/
	@Excel(name = "公司id", width = 15)
	@ApiModelProperty(value = "公司id")
	private String tenantId;

	public WeaWarningRecord () {}

	public WeaWarningRecord (String platformId,String warningDetailId) {
		this.id = IdUtil.fastUUID();
		this.platformId = platformId;
		this.warningDetailId = warningDetailId;
		this.createTime = new Date();
	}
  public WeaWarningRecord (String platformId,String warningDetailId,String data) {
    this.id = IdUtil.fastUUID();
    this.platformId = platformId;
    this.warningDetailId = warningDetailId;
    this.createTime = new Date();
    this.setData(data);
  }
}
